package sevice;

import java.util.List;

import dao.DaoFactory;
import model.ReceiveAddress;

public class ReceiveAddressServiceImp implements ReceiveAddressService {

	@Override
	public ReceiveAddress finById(int id) throws Exception {
		return DaoFactory.getReceiveAddressDAO().finById(id);
	}

	@Override
	public void save(ReceiveAddress addr) throws Exception {
		DaoFactory.getReceiveAddressDAO().save(addr);
	}

	@Override
	public List<ReceiveAddress> finByUserId(int userid) throws Exception {
		return DaoFactory.getReceiveAddressDAO().finByUserId(userid);
	}

}
